From Amber to Coercion Constraints

نویسندگان

  • Didier Rémy
  • Julien Cretin
چکیده

Subtyping is a common tool in the design of type systems that finds its roots in the η-expansion of arrow types and the notion of type containment obtained by closing System F by η-expansion. Although strongly related, subtyping and type containment still significantly differ from one another when put into practice. We introduce coercion constraints to relate and generalize subtyping and type containment as well as all variants of Fbounded quantification and instance-bounded quantification used for firstorder type inference in the presence of second-order types. We obtain a type system with a clearer separation between computational and erasable parts of terms. 1 The different flavors of subtyping Subtyping in Amber Nowadays, subtyping is a well-understood concept and tool in the design of type systems, but it has not always been so. The origin of subtyping goes back to the 60’s when type conversions between base types or type classes were introduced in programming languages, but the first formalization of subtyping is by Reynolds (1980). Subtyping was introduced in the strongly typed functional language Amber by Cardelli (1984). By contrast with simple type conversions between base types, subtyping in Amber can be propagated through arrow types covariantly on the codomains of functions and contravariantly on their domains. The language Amber had only subtyping but no parametric polymorphism: its typing rules are those of the simply typed λ-calculus extended with a subtyping rule Sub: Sub Γ ` a : τ τ . σ Γ ` a : σ Bot

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Formal Semantics in the Neurology Clinic: Atypical Understanding of Aspectual Coercion in ALS Patients

Amyotrophic lateral sclerosis (ALS) is a neurodegenerative disease of the motor system with subtle adverse effects on cognition. It is still unclear whether ALS also affects language and semantics, and if so, what aspects and processes exactly. We investigated how ALS patients understand verb phrases modified by temporal preposition phrases, e.g., "To watch TV for half an hour." Interpretation ...

متن کامل

Criteria for Prescribing Coercion in case of Gross and Widespread Violation of the Ethical Foundations of Human Rights

Background: Observance of human rights standards and adherence to ethical principles and foundations prevents the vulnerability of governments to foreign decisions and guarantees the independence of countries in a world where interdependence is one of its characteristics. Governments, while having legal legitimacy, must also enjoy moral legitimacy. Otherwise, international organizations and oth...

متن کامل

Defeating Us Coercion

The bombing of Serbia that began on 24 March 1999 typifies the logic that underlies the use of force by the United States and its NATO allies. Their air strikes and cruise-missile attacks were designed not to defeat the Serbian government, but to coerce Yugoslav President Slobodan Milosevic to accept a political settlement. Instead of having to destroy his forces completely or to remove his gov...

متن کامل

Type Coercion from a Natural Language Generation Point of View

We discuss the question of how phenomena of type coercion (TC) can be integrated into Natural Language Generation (NLG). The ultimate goal is the generation of expressions that instantiate type coercion in cases where such expressions are the most natural verbalization for a given piece of information. Our approach is an extension of the SPUD NLG system developed by Matthew Stone. This system i...

متن کامل

Temporal Forces and Type Coercion in Strings

Durative forces are introduced to Finite State Temporality (the application of Finite State Methods to Temporal Semantics). Punctual and durative forces are shown to have natural representations as fluents which place certain constraints on strings. These forces are related to previous work on stative explanations of aspectual classification. Given this extended ontology, it is shown how type c...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014